package com.kevin.ms.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Redis配置文件来自 application.yml
 *
 * @author Kevin Liu
 * @date 2020/1/5 20:37
 * @since 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "redis")
public class RedisConfig {

    private String host;

    private int port;

    /**
     * 秒
     */
    private int timeout;

    private int poolMaxTotal;

    private int poolMaxIdle;
    /**
     * 秒
     */
    private int poolMaxWait;

}
